<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>后台管理首页</title>
	<meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible" />
	<link rel="stylesheet" type="text/css" href="admin/css/backend.css" />
	<script type="text/javascript" src="<?=IMG_URL?>js/lib/jquery.js"></script>
	<script type="text/javascript" src="<?=IMG_URL?>js/cmstop.js"></script>
	<!-- tree -->
	<link rel="stylesheet" type="text/css" href="<?=IMG_URL?>js/lib/tree/style.css" />
	<script type="text/javascript" src="<?=IMG_URL?>js/lib/cmstop.tree.js"></script>
	<!-- menu -->
	<script type="text/javascript" src="admin/js/cmstop.tabview.js"></script>
	<script type="text/javascript" src="admin/js/cmstop.superassoc.js"></script>
	<script type="text/javascript">
		$(function(){
			if (window.top != self) {
				window.open(location, '_blank');
				ct.assoc.close();
			} else {
				superAssoc.init();
			}
		});
	</script>
</head>
<body scroll="no">
<!--头部开始-->
<div id="head">
	<h1>CmsTop</h1>
	<div id="menu_position">
		<ul id="menu">
			<?php if (is_array($topmenus)) foreach ($topmenus as $m):?>
			<li id="menu<?=$m['menuid']?>" url="<?php echo $m['url'];?>"><a href="javascript:;"><?php echo $m['name'];?></a>
				<?php if(isset($submenus[$m['menuid']]) && $submenus[$m['menuid']]):?>
				<ul>
					<?php foreach ($submenus[$m['menuid']] as $menu):?>
					<li id="menu<?php echo $menu['menuid'];?>"><a href="javascript:;"><?php echo $menu['name'];?></a></li>
					<?php endforeach; ?>
					<li class="menubtm"></li>
				</ul>
				<?php endif; ?>
			</li>
			<?php endforeach; ?>
		</ul>
	</div>
	<!--账户信息-->
	<div class="user">
		<a id="logout" href="javascript:;">退出</a></div>
</div>
<!--头部结束-->
<div id="main">
	<!--左侧开始-->
	<div id="left">
		<h2>
			<span style="float:right;"><a href="javascript:superAssoc.refresh();" onfocus="this.blur()" class="refresh"><img src="admin/images/space.gif" alt="刷新菜单" title="刷新菜单" height="18" width="16" /></a></span>
			<label id='root_menu_name'></label>
		</h2>
		<div id="browser"></div>
	</div>
	<!--左侧结束-->
	<!--右侧开始-->
	<div id="right">
		<div id="tab_container" target="#frame_container"></div>
		<div>
			<div id="shortcut">
    		<span title="网站首页" onclick="window.open('<?=WWW_URL?>')">
    			<img width="16" height="16" src="admin/images/home.gif" />
    		</span>
			</div>
			<div id="position"></div>
		</div>
		<div id="frame_container" style="width:100%;"></div>
	</div>
</div>
</body>
</html>